package com.zitangkou.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zitangkou.user.entity.PermissionDo;
import com.zitangkou.common.enums.StatusEnum;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 权限
 *
 * @author Deng Ningning
 * @version 1.0
 * @date 2020/8/31 16:39
 */

@Repository
public interface PermissionMapper extends BaseMapper<PermissionDo> {

    /**
     * 分页查询权限列表
     *
     * @param page
     * @param keyword
     * @param status
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.zitangkou.user.model.entity.PermissionDo>
     * @date 2021/2/27 11:37
     */
    IPage<PermissionDo> selectPageByConditions(IPage<PermissionDo> page, @Param("keyword") String keyword, @Param("status")
            StatusEnum status);

}
